package org.example.admin.service.impl;

import org.springframework.stereotype.Service;
import org.example.admin.entity.EleUser;
import org.example.admin.mapper.UserMapper;
import org.example.admin.service.UserService;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public EleUser selectUserById(Long userId) {
        return userMapper.selectUserById(userId);
    }

    @Override
    public EleUser selectUserByName(String userName) {
        return userMapper.selectUserByName(userName);
    }

    @Override
    public int insertUser(EleUser eleUser) {
        return userMapper.insertUser(eleUser);
    }

    @Override
    public int updateUser(EleUser eleUser) {
        return userMapper.updateUser(eleUser);
    }
}
